import request from '@/router/axios';
// 获取列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-equipment/eptRepair/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 设备列表
export const pullEptList = (locName, equipmentGroup) => {
  return request({
    url: '/api/hg-public/account/pullList',
    method: 'get',
    params: {
      equipmentGroup,
      locName
    }
  })
}

// 删除
export const remove = (ids) => {
  return request({
    url: '/api/hg-equipment/eptRepair/remove',
    method: 'post',
    params: {
      ids
    }
  })
}

// 详情
export const detail = (id) => {
  return request({
    url: '/api/hg-equipment/eptRepair/info',
    method: 'get',
    params: {
      id
    }
  })
}

// 保存
export const save = (data,ids) => {
  return request({
    url: '/api/hg-equipment/eptRepair/save',
    method: 'post',
    data: data,
    params: {
      ids
    }
  })
}